package com.hngy.xpq.shoppingcartmodule.bean;

import androidx.lifecycle.LiveData;

public class Cart extends LiveData<Cart> {

    int id;
    int shop_id;
    int number;
    Shop shop;

    public int getId() {
        return id;
    }

    public int getShop_id() {
        return shop_id;
    }

    public int getNumber() {
        return number;
    }

    public Shop getShop() {
        return shop;
    }

    public void setId(int id) {
        this.id = id;
        postValue(this);
    }

    public void setShop_id(int shop_id) {
        this.shop_id = shop_id;
        postValue(this);
    }

    public void setNumber(int number) {
        this.number = number;
        postValue(this);
    }

    public void setShop(Shop shop) {
        this.shop = shop;
        postValue(this);
    }

    @Override
    public String toString() {
        return "Cart{" +
                "id=" + id +
                ", shop_id=" + shop_id +
                ", number=" + number +
                ", shop=" + shop +
                '}';
    }
}
